﻿<MCard>
    <MRow>
        <MCol Cols="6">
            <MSelect @bind-Value="@value1"
                     Label="Standard"
                     Items="@items"
                     ItemText="u => u.Label"
                     ItemValue="u => u.Value"
                     PrependIcon="u => u.Label">
            </MSelect>
        </MCol>
    </MRow>
</MCard>

@code {
    private string value1;

    public class Item
    {
        public string Label { get; set; }
        public string Value { get; set; }

        public Item(string label, string value)
        {
            Label = label;
            Value = value;
        }
    }

    List<Item> items = new()
    {
        new Item("Foo", "1"),
        new Item("Bar", "2"),
        new Item("Fizz", "3"),
        new Item("Buzz", "4"),
    };
}